.gamesContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 2rem;
}

.singleGame {
  width: 30%;
  height: 600px;
  perspective: 800px;
  margin-bottom: 5rem;
  border-radius: 20px;
}

.card {
  height: 100%;
  width: 100%;
  transform-style: preserve-3d;
  border-radius: 20px;
  transition: transform 1s;
  box-shadow: 0 3px 10px var(--secondary);
}

.singleGame.flipped .card {
  transform: rotateY(180deg);
}

.cardFlip {
  transform: rotateY(180deg);
}

.cardFront,
.cardBack {
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 10px;
  padding: 10px;
}

.cardBack > div {
  width: 400px;
  text-align: center;
}

.cardBack p {
  text-align: center;
}

.cardFront {
  width: 100%;
  padding: 20px;
  justify-content: center;
  z-index: 1;
  color: var(--orange-secondary);
}

.imageContainer {
  width: 300px;
  height: auto;
  margin: 10px auto;
  display: flex;
}

.cardBack {
  width: 100%;
  color: var(--orange-secondary);
  background-color: var(--background);
  transform: rotateY(180deg);
  z-index: 2;
}

@media screen and (max-width: 1200px) {
  .singleGame {
    width: 100%;
  }
}

.singleGame img {
  width: 100%;
  height: 300px;
  object-fit: contain;
}

.cardBack button {
  margin-top: 20px;
}

.cardBack .editBtn {
  background-color: var(--secondary);
  color: black;
}

.grade {
  margin-bottom: auto;
}

.cardBack span {
  font-weight: bold;
  display: block;
}

.categoriesContainer {
  display: flex;
  max-width: 90%;
  margin: 0 auto;
  flex-wrap: wrap;
  max-height: 100px;
  justify-content: center;
}
